// 判断是否为Mobile
export default isMobile = function () {
  let userAgentInfo = navigator.userAgent.toLowerCase();
  let agent = [
    'android',
    'webos',
    'iphone',
    'ipod',
    'blackberry',
    'windows phone',
    'symbianos'
  ];
  let check = false;
  for (let i = 0; i < agent.length; i++) {
    if (userAgentInfo.indexOf(agent[i]) > 0) {
      check = true;
      break;
    }
  }
  return check;
};